package cn.hbtt.Dao;

import java.sql.Connection;
import java.sql.DriverManager;

public class BaseDao { 
	public   Connection  getConnection() {
		Connection conn=null;
		try{
			String url = "jdbc:mysql://localhost:3306/massage?characterEncoding=UTF-8&useSSL=false&serverTimezone=UTC";
			String user = "root";
			String password = "123456";
			Class.forName("com.mysql.cj.jdbc.Driver");
			conn=DriverManager.getConnection(url, user, password);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return conn;
	}
	
}


